REMOTE XY INTERFACE TUTORIAL (WIP)

Trevor Herman Hilker

Bluetooth Motor-shield Assembly

Max Vanatta
1 / 6
Bt_ms_libs.zip

In this tutorial, we will set up a simple phone to bluetooth to motor assembly.  Once this workflow and skill-set has been developed, any function of the battlebots should be easily accommodated.  

Step 1: Gather necessary components

Arduino

Motor Shield

Bluetooth module (HM-10)

9V Battery and connector

Motor 

4x M-F jumper cables

Step 2: Mount Motorshield

Making sure to align all pins to the correct pins on the Arduino, gently press the motor shield onto the Arduino.

Step 3: Bluetooth Component

Connect a M-F jumper cable to the VCC (Red), GND (Black), TX (Other Color, Yellow Pictured), RX (Other Color, Orange Pictured)

Step 4: Connect Bluetooth Component to Arduino

Connect the Bluetooth Component to the Arduino.  

VCC-->5V

GND -->GND (The choice of which Arduino GND to use doesn't matter.)

RX-->RX

TX--> TX.  

90% of all non-connect issues can be solved by switching Rx and Tx pins

Step 5: Connect Motor to Shield

Plug in a motor to the shield, choosing which location you will control from, in this case, M1.  Tighten the screws on the motor-shield to secure the motor wires.

Step 6: Connect External Power

Connect the power source to the motor-shield through the power terminals.  Red to +, Black to -.  Tighten the screws.

REMOTE_XY SAMPLE CONTROLLERS

Trevor Herman Hilker
1 / 8
SAMPLE CONFIGURATIONS.zip

These 8 Sample controllers are executable sketches to be used with Remote_XY, Arduino Uno, and Hm-10 Bluetooth Receivers.

BALANCE DRIVE uses a single joystick to control speed and direction of two motors

(NOTE: BALANCE DRIVE REMAINS UNTESTED/UNCALIBRATED)

TANK DRIVE uses individual joysticks to control speed and direction of two motors

BUTTON sends a HIGH signal to pin 13 for the duration of press (LOW on release)

SLIDER can be toggled to control a third motor or the position of a servo by commenting out the labeled sections of the code